package demo13;

import java.io.File;
import java.util.Scanner;

/**
 * @author Huangjin
 * @version 1.0
 * describe:
 * @date 2023/3/6 20:20
 */
public class Test03 {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入要创建的目录名：");
        String input = sc.next();
        File file = new File("./"+input);
        if(file.exists()){
            System.out.println("该目录已经存在！");
        }else {
            file.mkdirs();
            System.out.println("创建成功！");
        }

    }
}
